package com.jinkeen.xiaxie.base

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.jinkeen.xiaxie.databinding.ActivityBaseBinding

open class BaseActivity : AppCompatActivity() {
    private val TAG="XIAXIE"
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val binding=ActivityBaseBinding.inflate(layoutInflater)
        setContentView(binding.root)
        initData()
        initListener()
    }

    fun log(str:String){
        Log.e(TAG,str)
    }

    fun log(tag:String,str: String){
        Log.e(tag,str)
    }

    open fun initData(){

    }

    open fun initListener(){

    }
}